[INFO] cloning repository https://github.com/iwanghy/investmen-calculator
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iwanghy/investmen-calculator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiwanghy%2Finvestmen-calculator", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiwanghy%2Finvestmen-calculator'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0d271040155f044fbd2521ac153f82c18eb5d924
[INFO] testing iwanghy/investmen-calculator against master#1f7f8ea0721a3b1eb73e6c6d25cccb371434b320 for pr-154065
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiwanghy%2Finvestmen-calculator" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/iwanghy/investmen-calculator
[INFO] finished tweaking git repo https://github.com/iwanghy/investmen-calculator
[INFO] tweaked toml for git repo https://github.com/iwanghy/investmen-calculator written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/iwanghy/investmen-calculator on toolchain 1f7f8ea0721a3b1eb73e6c6d25cccb371434b320
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/iwanghy/investmen-calculator already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tokio-test v0.4.5
[INFO] [stderr]   Downloaded home v0.5.12
[INFO] [stderr]   Downloaded sqlx-mysql v0.7.4
[INFO] [stderr]   Downloaded askama_escape v0.10.3
[INFO] [stderr]   Downloaded askama_parser v0.2.1
[INFO] [stderr]   Downloaded askama_derive v0.12.5
[INFO] [stderr]   Downloaded whoami v1.6.1
[INFO] [stderr]   Downloaded zmij v1.0.13
[INFO] [stderr]   Downloaded askama v0.12.1
[INFO] [stderr]   Downloaded rsa v0.9.10
[INFO] [stderr]   Downloaded num-bigint-dig v0.8.6
[INFO] [stderr]   Downloaded sqlx-postgres v0.7.4
[INFO] [stderr]   Downloaded cc v1.2.52
[INFO] [stderr]   Downloaded find-msvc-tools v0.1.7
[INFO] [stderr]   Downloaded humansize v2.1.3
[INFO] [stderr]   Downloaded unicode-properties v0.1.4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 701b00d106478ec8751c83960b04087e93af1d1c79950611317f2ced51dce078
[INFO] running `Command { std: "docker" "start" "-a" "701b00d106478ec8751c83960b04087e93af1d1c79950611317f2ced51dce078", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "701b00d106478ec8751c83960b04087e93af1d1c79950611317f2ced51dce078", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "701b00d106478ec8751c83960b04087e93af1d1c79950611317f2ced51dce078", kill_on_drop: false }`
[INFO] [stdout] 701b00d106478ec8751c83960b04087e93af1d1c79950611317f2ced51dce078
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0e8bb08eed1306c8770cc81d597d935c5d49f24181279fe2a9add8abbaa3f12e
[INFO] running `Command { std: "docker" "start" "-a" "0e8bb08eed1306c8770cc81d597d935c5d49f24181279fe2a9add8abbaa3f12e", kill_on_drop: false }`
[INFO] [stderr]    Compiling scopeguard v1.2.0
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling find-msvc-tools v0.1.7
[INFO] [stderr]    Compiling futures-sink v0.3.31
[INFO] [stderr]    Compiling errno v0.3.14
[INFO] [stderr]    Compiling log v0.4.29
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling zmij v1.0.13
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling icu_properties v2.1.2
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling lock_api v0.4.14
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling signal-hook-registry v1.4.8
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling unicase v2.9.0
[INFO] [stderr]    Compiling cc v1.2.52
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling crc-catalog v2.4.0
[INFO] [stderr]    Compiling crc v3.4.0
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling tokio v1.49.0
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling httpdate v1.0.3
[INFO] [stderr]    Compiling untrusted v0.9.0
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling rustix v1.1.3
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling chrono v0.4.42
[INFO] [stderr]    Compiling hashlink v0.8.4
[INFO] [stderr]    Compiling url v2.5.8
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling crypto-common v0.1.7
[INFO] [stderr]    Compiling bitflags v2.10.0
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling linux-raw-sys v0.11.0
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling sqlformat v0.2.6
[INFO] [stderr]    Compiling libsqlite3-sys v0.27.0
[INFO] [stderr]    Compiling rustls v0.21.12
[INFO] [stderr]    Compiling urlencoding v2.1.3
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling flume v0.11.1
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]    Compiling libm v0.2.15
[INFO] [stderr]    Compiling fastrand v2.3.0
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling http-body-util v0.1.3
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]    Compiling ryu v1.0.22
[INFO] [stderr]    Compiling sync_wrapper v1.0.2
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling askama_parser v0.2.1
[INFO] [stderr]    Compiling basic-toml v0.1.10
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling rustls-pemfile v1.0.4
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling serde_path_to_error v0.1.20
[INFO] [stderr]    Compiling thread_local v1.1.9
[INFO] [stderr]    Compiling webpki-roots v0.25.4
[INFO] [stderr]    Compiling tempfile v3.24.0
[INFO] [stderr]    Compiling humansize v2.1.3
[INFO] [stderr]    Compiling askama_escape v0.10.3
[INFO] [stderr]    Compiling nu-ansi-term v0.50.3
[INFO] [stderr]    Compiling sync_wrapper v0.1.2
[INFO] [stderr]    Compiling matchit v0.7.3
[INFO] [stderr]    Compiling ipnet v2.11.0
[INFO] [stderr]    Compiling http-range-header v0.4.2
[INFO] [stderr]    Compiling tracing-subscriber v0.3.22
[INFO] [stderr]    Compiling tower v0.4.13
[INFO] [stderr]    Compiling axum-core v0.4.5
[INFO] [stderr]    Compiling tokio-stream v0.1.18
[INFO] [stderr]    Compiling askama_derive v0.12.5
[INFO] [stderr]    Compiling sqlx-core v0.7.4
[INFO] [stderr]    Compiling sct v0.7.1
[INFO] [stderr]    Compiling rustls-webpki v0.101.7
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling hyper v1.8.1
[INFO] [stderr]    Compiling tower v0.5.3
[INFO] [stderr]    Compiling askama v0.12.1
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling tower-http v0.5.2
[INFO] [stderr]    Compiling hyper-util v0.1.19
[INFO] [stderr]    Compiling axum v0.7.9
[INFO] [stderr]    Compiling tokio-rustls v0.24.1
[INFO] [stderr]    Compiling sqlx-sqlite v0.7.4
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling sqlx-macros-core v0.7.4
[INFO] [stderr]    Compiling hyper-rustls v0.24.2
[INFO] [stderr]    Compiling reqwest v0.11.27
[INFO] [stderr]    Compiling sqlx-macros v0.7.4
[INFO] [stderr]    Compiling sqlx v0.7.4
[INFO] [stderr]    Compiling loss-calculator v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `investment_type`
[INFO] [stdout]   --> src/services/sina_finance.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     investment_type: &InvestmentType,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_investment_type`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `investment_type`
[INFO] [stdout]   --> src/services/sina_finance.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     investment_type: &InvestmentType,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_investment_type`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_price_by_date` is never used
[INFO] [stdout]   --> src/db/prices.rs:50:18
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl PriceRepository {
[INFO] [stdout]    | -------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 50 |     pub async fn get_price_by_date(
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `investment_id` and `created_at` are never read
[INFO] [stdout]   --> src/db/prices.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 78 | pub struct PriceWithTimestamp {
[INFO] [stdout]    |            ------------------ fields in this struct
[INFO] [stdout] 79 |     pub investment_id: i64,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 82 |     pub created_at: DateTime<Utc>,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PriceWithTimestamp` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Price` is never constructed
[INFO] [stdout]   --> src/models/mod.rs:86:12
[INFO] [stdout]    |
[INFO] [stdout] 86 | pub struct Price {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_price_for_date` is never used
[INFO] [stdout]   --> src/services/price_cache.rs:56:18
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl PriceCacheService {
[INFO] [stdout]    | ---------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 56 |     pub async fn get_price_for_date(
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fetch_price_yahoo` is never used
[INFO] [stdout]  --> src/services/yahoo_finance.rs:3:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub async fn fetch_price_yahoo(symbol: &str) -> Result<f64> {
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fetch_historical_prices` is never used
[INFO] [stdout]   --> src/services/yahoo_finance.rs:27:14
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub async fn fetch_historical_prices(
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `format_timestamp` is never used
[INFO] [stdout]  --> src/utils/mod.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn format_timestamp(timestamp: i64) -> String {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `parse_timestamp_to_chrono` is never used
[INFO] [stdout]   --> src/utils/mod.rs:12:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub fn parse_timestamp_to_chrono(timestamp: i64) -> DateTime<Utc> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 27s
[INFO] running `Command { std: "docker" "inspect" "0e8bb08eed1306c8770cc81d597d935c5d49f24181279fe2a9add8abbaa3f12e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0e8bb08eed1306c8770cc81d597d935c5d49f24181279fe2a9add8abbaa3f12e", kill_on_drop: false }`
[INFO] [stdout] 0e8bb08eed1306c8770cc81d597d935c5d49f24181279fe2a9add8abbaa3f12e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 13dc8406fe4db0e736d8f0f1795af282d271eeb30c0c891b58a8b7c024a52b07
[INFO] running `Command { std: "docker" "start" "-a" "13dc8406fe4db0e736d8f0f1795af282d271eeb30c0c891b58a8b7c024a52b07", kill_on_drop: false }`
[INFO] [stderr]    Compiling tokio v1.49.0
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling tokio-stream v0.1.18
[INFO] [stderr]    Compiling tokio-rustls v0.24.1
[INFO] [stderr]    Compiling hyper v1.8.1
[INFO] [stderr]    Compiling tower v0.5.3
[INFO] [stderr]    Compiling sqlx-core v0.7.4
[INFO] [stderr]    Compiling tokio-test v0.4.5
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling tower-http v0.5.2
[INFO] [stderr]    Compiling hyper-util v0.1.19
[INFO] [stderr]    Compiling axum v0.7.9
[INFO] [stderr]    Compiling sqlx-sqlite v0.7.4
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling sqlx v0.7.4
[INFO] [stderr]    Compiling hyper-rustls v0.24.2
[INFO] [stderr]    Compiling reqwest v0.11.27
[INFO] [stderr]    Compiling loss-calculator v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `investment_type`
[INFO] [stdout]   --> src/services/sina_finance.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     investment_type: &InvestmentType,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_investment_type`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `investment_type`
[INFO] [stdout]   --> src/services/sina_finance.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     investment_type: &InvestmentType,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_investment_type`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `investment_type`
[INFO] [stdout]   --> src/services/sina_finance.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     investment_type: &InvestmentType,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_investment_type`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_price_by_date` is never used
[INFO] [stdout]   --> src/db/prices.rs:50:18
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl PriceRepository {
[INFO] [stdout]    | -------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 50 |     pub async fn get_price_by_date(
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `investment_id` and `created_at` are never read
[INFO] [stdout]   --> src/db/prices.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 78 | pub struct PriceWithTimestamp {
[INFO] [stdout]    |            ------------------ fields in this struct
[INFO] [stdout] 79 |     pub investment_id: i64,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 82 |     pub created_at: DateTime<Utc>,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PriceWithTimestamp` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Price` is never constructed
[INFO] [stdout]   --> src/models/mod.rs:86:12
[INFO] [stdout]    |
[INFO] [stdout] 86 | pub struct Price {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_price_for_date` is never used
[INFO] [stdout]   --> src/services/price_cache.rs:56:18
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl PriceCacheService {
[INFO] [stdout]    | ---------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 56 |     pub async fn get_price_for_date(
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fetch_price_yahoo` is never used
[INFO] [stdout]  --> src/services/yahoo_finance.rs:3:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub async fn fetch_price_yahoo(symbol: &str) -> Result<f64> {
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fetch_historical_prices` is never used
[INFO] [stdout]   --> src/services/yahoo_finance.rs:27:14
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub async fn fetch_historical_prices(
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `format_timestamp` is never used
[INFO] [stdout]  --> src/utils/mod.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn format_timestamp(timestamp: i64) -> String {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `parse_timestamp_to_chrono` is never used
[INFO] [stdout]   --> src/utils/mod.rs:12:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub fn parse_timestamp_to_chrono(timestamp: i64) -> DateTime<Utc> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 38.79s
[INFO] running `Command { std: "docker" "inspect" "13dc8406fe4db0e736d8f0f1795af282d271eeb30c0c891b58a8b7c024a52b07", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "13dc8406fe4db0e736d8f0f1795af282d271eeb30c0c891b58a8b7c024a52b07", kill_on_drop: false }`
[INFO] [stdout] 13dc8406fe4db0e736d8f0f1795af282d271eeb30c0c891b58a8b7c024a52b07
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] eeae7d9aa7220fcb1db32a8e212f9d66873fa05b3a074f8432f8f0ef97fb4ca8
[INFO] running `Command { std: "docker" "start" "-a" "eeae7d9aa7220fcb1db32a8e212f9d66873fa05b3a074f8432f8f0ef97fb4ca8", kill_on_drop: false }`
[INFO] [stderr] warning: unused variable: `investment_type`
[INFO] [stderr]   --> src/services/sina_finance.rs:34:5
[INFO] [stderr]    |
[INFO] [stderr] 34 |     investment_type: &InvestmentType,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_investment_type`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `loss-calculator` (lib) generated 1 warning (run `cargo fix --lib -p loss-calculator` to apply 1 suggestion)
[INFO] [stderr] warning: `loss-calculator` (lib test) generated 1 warning (1 duplicate)
[INFO] [stderr] warning: method `get_price_by_date` is never used
[INFO] [stderr]   --> src/db/prices.rs:50:18
[INFO] [stderr]    |
[INFO] [stderr]  9 | impl PriceRepository {
[INFO] [stderr]    | -------------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 50 |     pub async fn get_price_by_date(
[INFO] [stderr]    |                  ^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: fields `investment_id` and `created_at` are never read
[INFO] [stderr]   --> src/db/prices.rs:79:9
[INFO] [stderr]    |
[INFO] [stderr] 78 | pub struct PriceWithTimestamp {
[INFO] [stderr]    |            ------------------ fields in this struct
[INFO] [stderr] 79 |     pub investment_id: i64,
[INFO] [stderr]    |         ^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 82 |     pub created_at: DateTime<Utc>,
[INFO] [stderr]    |         ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `PriceWithTimestamp` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Price` is never constructed
[INFO] [stderr]   --> src/models/mod.rs:86:12
[INFO] [stderr]    |
[INFO] [stderr] 86 | pub struct Price {
[INFO] [stderr]    |            ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `get_price_for_date` is never used
[INFO] [stderr]   --> src/services/price_cache.rs:56:18
[INFO] [stderr]    |
[INFO] [stderr] 13 | impl PriceCacheService {
[INFO] [stderr]    | ---------------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 56 |     pub async fn get_price_for_date(
[INFO] [stderr]    |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `fetch_price_yahoo` is never used
[INFO] [stderr]  --> src/services/yahoo_finance.rs:3:14
[INFO] [stderr]   |
[INFO] [stderr] 3 | pub async fn fetch_price_yahoo(symbol: &str) -> Result<f64> {
[INFO] [stderr]   |              ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `fetch_historical_prices` is never used
[INFO] [stderr]   --> src/services/yahoo_finance.rs:27:14
[INFO] [stderr]    |
[INFO] [stderr] 27 | pub async fn fetch_historical_prices(
[INFO] [stderr]    |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `format_timestamp` is never used
[INFO] [stderr]  --> src/utils/mod.rs:4:8
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn format_timestamp(timestamp: i64) -> String {
[INFO] [stderr]   |        ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `parse_timestamp_to_chrono` is never used
[INFO] [stderr]   --> src/utils/mod.rs:12:8
[INFO] [stderr]    |
[INFO] [stderr] 12 | pub fn parse_timestamp_to_chrono(timestamp: i64) -> DateTime<Utc> {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `loss-calculator` (bin "loss-calculator" test) generated 9 warnings (1 duplicate)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.44s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/loss_calculator-26af0c25b5515989)
[INFO] [stdout] running 2 tests
[INFO] [stdout] test services::sina_finance::tests::test_parse_sina_response ... ok
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/loss_calculator-66cb31b972131893)
[INFO] [stdout] test services::sina_finance::tests::test_convert_to_sina_symbol ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 2 tests
[INFO] [stdout] test services::sina_finance::tests::test_parse_sina_response ... ok
[INFO] [stdout] test services::sina_finance::tests::test_convert_to_sina_symbol ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests loss_calculator
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "eeae7d9aa7220fcb1db32a8e212f9d66873fa05b3a074f8432f8f0ef97fb4ca8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "eeae7d9aa7220fcb1db32a8e212f9d66873fa05b3a074f8432f8f0ef97fb4ca8", kill_on_drop: false }`
[INFO] [stdout] eeae7d9aa7220fcb1db32a8e212f9d66873fa05b3a074f8432f8f0ef97fb4ca8
